package cn.edu.zknu.mita.controller;

import cn.edu.zknu.mita.util.RandomCodeUtils;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * Created by iwlnner on 2020/3/22.
 */
@Controller
public class RandomCodeController {

    @RequestMapping("/randomcode")
    public void createCode(HttpServletRequest req, HttpServletResponse resp){
        RandomCodeUtils.createRandomCode(req,resp);
    }

}
